<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>成绩查询</title>
	<link rel="stylesheet" href="<?php echo base_url();?>public/assets/css/bootstrap.min.css">
    <script type="text/javascript" src="<?php echo base_url();?>public/assets/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/assets/js/bootstrap.min.js"></script>

</head>
<body>

<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
	<?php foreach ($score as  $value):?>
		<?php if(!empty($value[8])):?>
		<div class="panel panel-default">
		    <div class="panel-heading" role="tab" id="headingOne">
		      <h4 class="panel-title">
		        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne_<?php echo $value[0] ?>" aria-expanded="true" aria-controls="collapseOne">
		          <?php echo $value[1];?><span style="float:right"><strong><?php echo $value[7];?><strong></span>
		        </a>
		      </h4>
		    </div>
		    <div id="collapseOne_<?php echo $value[0] ?>" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
		      <div class="panel-body">
		       <p>课程代码:<?php echo $value[0]?></p>
		       <p>学分:<?php echo $value[8]?></p>
		      </div>
    		</div>
		</div>
		<?php endif;?>
	<?php endforeach;?>
  
 
</div>



</body>
</html>